#include "LogRecorder.h"

void LogRecorder::setFormat(LogFormatPtr format)
{
	this->mLogFormat = std::move(format);
}

void LogRecorder::setLevel(LogLevel level)
{
	this->mLevel = std::move(level);
}

LogRecorder::~LogRecorder()
{
	
}

const std::string LogRecorder::levelToStr(LogLevel level)
{
	switch (level)
	{
	case LogLevel::DEBUG:
		return "DEBUG";
		break;
	case LogLevel::INFO:
		return "INFO";
		break;
	case LogLevel::WARN:
		return "WARN";
		break;
	case LogLevel::ERROR:
		return "RERROR";
		break;
	default:
		return "";
		break;
	}
}
